package com.itheima.easy.mapper;

import com.itheima.easy.entity.RescissionContract;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* <p>
* rescission_contract Mapper 接口
* </p>
*
* @author yuhon
* @since 2023-06-24 13:55:47
*/
@Mapper
public interface RescissionContractMapper {


    @Select("select * from rescission_contract where retreat_id = #{retreatId}")
    RescissionContract selectByRetreatId(long retreatId);

    void insert(RescissionContract rescissionContract);

    @Delete("delete from rescission_contract where retreat_id = #{retreatId}")
    void deleteByRetreatId(long retreatId);
}